export const phoneRule = value => {
  const rule =
    /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1589]))\d{8}$/
  return rule.test(value)
}

export const passwordRule = value => {
  const rule = /^[a-zA-Z0-9_-]{4,16}$/
  return rule.test(value)
}
